package com.gxgeek.javabasic.file;//package com.gx.file;
//
//import java.util.concurrent.locks.ReadWriteLock;
//import java.util.concurrent.locks.StampedLock;
//
///**
// * Created by Administrator on 2017/8/20.
// */
//public class OperateFile {
//    public final static ReadWriteLock readWriteLock = null;
//
//
//    public static byte[] getFile(){
//        readWriteLock.readLock().lock();
//        readWriteLock.readLock().unlock();
//        return new byte[]{};
//    }
//    static byte [] getFile(){
//        readWriteLock.writeLock().lock();
//        readWriteLock.writeLock().unlock();
//    }
//
//}
//class OperateFileBystump {
//    public final static StampedLock stampedLock = null;
//
//
//    public static byte[] getFile(){
//        long stamp = stampedLock.tryOptimisticRead();
//        if (stampedLock.validate(stamp)){
//
//        }
//        readWriteLock.readLock().unlock();
//        return new byte[]{};
//    }
//    static byte [] getFile(){
//        readWriteLock.writeLock().lock();
//        readWriteLock.writeLock().unlock();
//    }
//
//}
